package com.common.zrd.validation.exception;

/**
 * @author zrd
 * @Date: 2019/11/4 17:28
 * @Description:
 */
public class FrameworkValidationException extends FrameworkException {
    private final String errorCode;

    public FrameworkValidationException(String errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public String getErrorCode() {
        return this.errorCode;
    }

    public String getOriginMessage() {
        return super.getMessage();
    }

    @Override
    public String getMessage() {
        return "[" + this.errorCode + "]" + super.getMessage();
    }
}
